﻿namespace BLL.Interface.Base
{
    public interface IValidateCode
    {
        /// <summary>
        /// 创建验证码的文字
        /// </summary>
        /// <param name="length"> 验证码长度</param>
        /// <returns>验证码</returns>
        string CreateCode(int length = 4);

        /// <summary>
        /// 创建验证码
        /// </summary>
        /// <param name="validateCode">验证码</param>
        /// <param name="imageHeight">验证码图片高度 </param>
        /// <returns>验证码图像</returns>
        byte[] CreateImage(string validateCode, int imageHeight = 33);

    }
}